﻿
<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/taglib.jsp"%>
<%@ include file="/WEB-INF/jsp/include/script.jsp" %> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head> 
    <title>DataConverge</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <SCRIPT type="text/javascript">
    	function changeBokuan(node){
    	  if(node.value=="bokuan"){
    	  	document.getElementById("permitFund").disabled=false;
    	  }
    	  else{
    	  	document.getElementById("permitFund").disabled=true;
    	  }
    	}
    	function check(){
    		document.getElementById("check1").style.display="block";
    		document.getElementById("check2").style.display="block";
    	}
    	function uncheck(){
    		document.getElementById("check1").style.display="none";
    		document.getElementById("check2").style.display="none";
    	}
    	
     function goback(){
      	var page=document.form0.page.value;
      	var subjectId=document.form0.subjectId.value;
      	if(page!="" && subjectId!=""){
      		//document.location.href='subject.htm?ec_p='+page;
      		document.location.href="subjectModify.htm?subjectId="+subjectId+"&page="+page;
      	}else{
      		document.location.href='subject.htm?ec_p='+page;;
      	}
      }
      
      function checkForm(){
     	 var fo=document.form0;
		 var exp = new RegExp("^[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}$");
		 if(fo.permitDate.value!="" && !exp.test(fo.permitDate.value)){
      			alert("请确认中标日期的格式!");
     			fo.permitDate.focus();
	  			return false;
	  	}
      }
    </SCRIPT>
  </head>
  
  <body>
    <br>
<div align="center"><h4>课题评审信息</h4></div>
<form name="form0" action="checkManage.htm" method="post">
<IFRAME id="CalFrame"  
  style="DISPLAY: none; Z-INDEX: 100; WIDTH: 148px; POSITION: absolute;HEIGHT: 194px; left: 42px; top: 50px "
  marginWidth="0" marginHeight="0" 
  src="js/calendar/calendars.html" frameBorder="0"  
  noResize scrolling="no">
</IFRAME>
<input type="hidden" name="subjectId" value="${subject.id}"/>
<input type="hidden" name="page" value="${page}"/>
<table width="80%"  border="1" align="center">
  <tr>
    <td>课题名称</td>
    <td colspan="3"><c:out value="${subject.subjectName}"/></td>   
  </tr>
  <tr>
    <td>开始日期</td>
    <td><c:out value="${subject.startDate}"/>&nbsp;</td>
    <td>结束日期</td>
    <td><c:out value="${subject.endDate}"/>&nbsp;</td>
  </tr>
  <tr>
    <td>中标信息</td>
     <td colspan="3"><input name="isChecked" type="radio" value="checked" onclick="check();">中标 <input name="isChecked" type="radio" value="unchecked" onclick="uncheck();">未中标</td>  
  </tr>
  <tr id="check1" style="display:none;">
    <td>课题编号</td>
    <td><input type="text" name="number" value="${subject.number}"></td>
    <td>中标日期</td>
    <td><input type="text" name="permitDate" value="${subject.permitDate}" onClick="ShowCalendar(this,this,null,0);" onkeydown="HideCalendar();" onblur="setFormatDate(this);"></td>
  </tr>
  <tr id="check2" style="display:none;">
    <td>拨款类型</td>
    <td><select name="bokuanType" onchange="changeBokuan(this);">
			<option value="bokuan">拨款</option>
			<option value="zichou">自筹</option>			
	</select></td>
    <td>中标总金额（万元）</td>
    <td><input id="permitFund" name="permitFund" type="text" value="${subject.permitFund}"></td>
  </tr>
  <tr id="uncheckDetail" style="display:none;">
    <td>详细意见</td>
    <td colspan="3"><textarea name="checkDetail"></textarea></td>
  </tr>
</table>
<br>
<TABLE align="center">
	<TR>
		<TD><input type="submit" value="保存" onclick="return checkForm();">
		&nbsp;&nbsp;<input type="button" value="返回" onclick="history.back(-1)"></TD>
	</TR>
</TABLE>
 </form>
  </body>
</html>
